<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="businessObject.*,dataTransferObject.*,java.util.*" %>
<%@page import="java.util.Calendar"%>
<%@ page import="data.*,dataTransferObject.*,java.util.Map,java.util.List,java.util.Date;" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>PetSociety - votar</title>

<link rel="stylesheet" type="text/css" href="css/dentro.css" />
<style type="text/css"> a:link { color: "FFD700"; text-decoration:none; }</style>

</head>



<body>
	<div id="wrapper">
	
		 <%
		GestionUsuario pos=GestionUsuario.getInstance();
		Integer us = (Integer)session.getAttribute("session.idusuario");
	 	Usuario usuario=pos.getUsuarioConAmigos(us);
	 %>
	 
	 <jsp:include page="head.jsp"></jsp:include>
	 
	   <!-- Begin Faux Columns -->
	
 <jsp:include page="informacion.jsp">
	 <jsp:param name="idUsuario"  value="<%= usuario.getIdUsuario() %>"/>	 
	 </jsp:include>	 
	

<br></br>

<h1 align="center" id="titleRanking">Puntuar mascotas</h1>
<hr size="5" align="center" color="orange">
</hr>
		
<br></br>	


		

	<%
	
	String idMascota=request.getParameter("idMascota");
	GestionMascota gestion=GestionMascota.getInstance();
	Mascota mascota=GestionMascota.getMascota(Integer.parseInt(idMascota));
	%>
				
	


  <td align="center"> <img src="images/<%=mascota.getImagen_de_mascota()%>.jpg" width=300 height=300 border=1 align= "left"></img></td> 
  		
				
<form action="GestionVotar?resource=ranking.jsp&idMascota=<%=mascota.getIdMascota()%>" method="post" >

<select name="puntuacion">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<input type="submit" value="votar"/>
</form>
		
		
		
		
				
						   
				</div>       

			    	       

			   <div class="clear"></div>

			   

	      

		       <!-- End Right Column -->

			   

			  		   

			     <div class="clear"></div>

			   

	     

         <!-- End Faux Columns --> 



          <!-- Begin Footer -->

         <div id="footer">

		       

            <br></br>							

								 - Universidad de Sevilla - 

	         </div>

				 <!-- End Footer -->

				 </div>

				  <!-- End Wrapper -->

</body>

</html>